"""
    Author:
    Date: 2019-08-12

    微信管理后台-tool
"""

from django.shortcuts import render

from entities.consts import *
from entities import video_mgr

from .. import helpers
from .. helpers import gma_login_required


@gma_login_required
def video_to_moment(request):
    """ 首页 """
    context = helpers.build_context(request)
    context['authorized_video_count'] = video_mgr.get_video_count_by_auth_status(VIDEO_AUTH_STATUS_AGREE, request)
    return render(request, 'gma/tool/tool_video_to_moment.html', context)


if __name__ == '__main__':
    print('ok')
